#ifndef STUDY_WIDGET_TOP_H
#define STUDY_WIDGET_TOP_H

#include <QWidget>
#include <QVBoxLayout>
#include <QPalette>
#include <QPainter>
#include <QPaintEvent>
#include <QStyleOption>
#include <QPixmap>
#include <QHBoxLayout>
#include <QLabel>
#include <QDebug>
#include <QPushButton>

class study_widget_top : public QWidget
{
    Q_OBJECT
public:
    explicit study_widget_top(QWidget *parent = 0);
    void paintEvent(QPaintEvent *event);

signals:
    void sigPenStudy(qint64 timestamp);

private:
    QHBoxLayout *top_layout;
    QLabel *portrait;
    QLabel *nameLabel;
    QLabel *statusLabel;
    QPushButton *statusBtn;
public slots:
    void onPenStatusChanged(qint64 status);
};

#endif // STUDY_WIDGET_TOP_H
